// 引入构造函数
import { createStore } from "vuex";

// 构造vuex实例
const store  = createStore({
  state() {
    return {
      counter: 0
    }
  },
  mutations: {
    increment (state: any) {
      state.counter++
    }
  }
})

// 导出
export default store